<?php
abstract class Ab {
    protected $name;
    protected $weapon;
    protected $target;
    public $unfriendly;
    function __construct($name) {
        $this->name = $name;
    }
    function smotret($human) {
        $this->target = $human;
    }
    function govorit($fraza) {
        echo '- '.$fraza."\n";
    }
    function dostatOrujie($weapon) {
        $this->weapon = $weapon;
        echo '* '.$this->name.' dostaet '.$weapon." *\n";
    }
}